package com.ckerchina.admin.ckadmin.domain.mgr;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import com.ckerchina.admin.ckadmin.domain.IdEntity.IdEntityAuto;

/**
 * mgr用户
 */
/**
 * @author spacex
 *
 */
@Entity
public class MgrUser extends IdEntityAuto{
	private static final long serialVersionUID = 3993849099200626226L;

	/**
	 *账号名
	 */
	@NotNull
	@Column(length = 200)
	private String name;
	

	/**
	 * @param 真实姓名
	 */
	@NotNull
	@Column(length = 200)
	private String realname;
	
	/**
	 * email
	 */
	@NotNull
	@Column(length = 200)
	private String email;
	
	/**
	 * 角色
	 */
	private String actortype;
	
	/**
	 * 用户密码
	 */
	@NotNull
	@Column(length = 50)
	private String pwd;
	
	/**
	 * 公司ID
	 */
	private String companyid;
	
	/**
	 * 公司名称
	 */
	private String companyname;
	
	/**
	 * 1启用
	 */
	private int state = 1;

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	@Column(length = 50)
	private Date createTime;

	public String getActortype() {
		return actortype;
	}

	public void setActortype(String actortype) {
		this.actortype = actortype;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
